﻿using UnityEngine;
using System.Collections;

[RequireComponent(typeof(SpriteRenderer))]
public class SporeSkin : MonoBehaviour {

    public Sprite[] skins;

    // Use this for initialization
    void Start() {
        // changeSkin(0);
    }
	
    public void changeSkin(int i) {
        if (i >= 0 && i < skins.Length) {
            GetComponent<SpriteRenderer>().sprite = skins[i];
        }
    }

    // TODO, use a dict to hold the skins
}
